// src/api/user.ts
import request from '../utils/request'
import type { LoginParams, LoginResponse } from '../types/user'

export const apiLogin = (data: LoginParams) => {
    return request.post<LoginResponse>('/login', data)
}

export const apiRegister = (data: LoginParams) => {
    return request.get<LoginResponse>('/register', data)
}
